package com.thoughtworks.preuniversity.biblioteca;

/**
 * Created by padmavb on 6/12/14.
 */
//Job:Reads the book title which the customer want to checkOut ,ask for library whether it is in the available book list or not.
public class CheckOutBook extends MenuOperation{



    @Override
    void doCorrespondingOperation(Library library) {

        UserInterface userInterface=new UserInterface();
        userInterface.displayMessage("Enter book title to check out");

        String bookToCheckOut=new UserInterface().readBookTitle();
        library.checkOut(bookToCheckOut);
    }

    @Override
    String giveJobOfClass() {
        return "Check Out";
    }
}
